package com.app.ctzoverseas.network.repo

import com.app.ctzoverseas.network.http.AccountNetwork

class AccountRepo(private val network: AccountNetwork) {

    fun getBannerList() = network.getBannerList()
    fun getUserInfo() = network.getUserInfo()

    companion object {

        @Volatile
        private var INSTANCE: AccountRepo? = null

        fun getInstance(netWork: AccountNetwork) =
            INSTANCE ?: synchronized(this) {
                INSTANCE ?: AccountRepo(netWork).also { INSTANCE = it }
            }
    }
}